import service from '../untils/reqult'

export function add(data) {
    return service({
        url: '/system/notice',
        method: 'post',
        data: data
    })
}
export function del (id) {
    return service({
        url: '/system/notice/'+id,
        method: 'delete',
    })
}
export function getList (id) {
    return service({
        url: '/system/notice/'+id,
        method: 'get',
    })
}
export function update (data) {
    return service({
        url: '/system/notice',
        method: 'put',
        data: data
    })
}


export default { add,getList,update,del}